//面切片为边长一公里的正方形面

let TSfea = [
  [117.22556025411116, 34.447356820073104],
  [117.22813868869407, 34.447907772640995],
  [117.22989662930755, 34.450853016691724],
  [117.23818661830092, 34.45159408689049],
  [117.2433630058998, 34.446814193483405],
  [117.25148266494695, 34.44817740295691],
  [117.25126413062804, 34.451737853147584],
  [117.25576721634278, 34.453770388126166],
  [117.2562753092232, 34.45580465952478],
  [117.2484478568161, 34.45487025488224],
  [117.24690494412847, 34.45777037880197],
  [117.2481394243436, 34.459731656879086],
  [117.25511219383428, 34.461327283873445],
  [117.25729207258415, 34.4566761424604],
  [117.25939809264793, 34.459145680422864],
  [117.25866997252787, 34.46968158940457],
  [117.25663592682201, 34.47120822906089],
  [117.24995337551873, 34.47164677922186],
  [117.2462483649396, 34.47564426686392],
  [117.24617532373183, 34.47825989962021],
  [117.24922573622484, 34.480002518690895],
  [117.249806343425, 34.48319914474764],
  [117.2508957265054, 34.48421592328883],
  [117.25590764588442, 34.483632856880966],
  [117.26019404517885, 34.47774601936072],
  [117.259564360681, 34.47343923435665],
  [117.26847391114282, 34.470510182511276],
  [117.27090772308394, 34.47305939016876],
  [117.27061332227835, 34.47843489582896],
  [117.26597494663037, 34.48482314722565],
  [117.26282524861898, 34.49448294588844],
  [117.26715497124646, 34.498218001925494],
  [117.2760338469431, 34.49676507917918],
  [117.27789974214238, 34.5006598245589],
  [117.27500726105488, 34.50854693957107],
  [117.2687615362539, 34.508900909097754],
  [117.26722104762797, 34.511097076248376],
  [117.26998590188681, 34.512697374056565],
  [117.27056840533105, 34.50985860901833],
  [117.27555370705821, 34.50914899838427],
  [117.27417654026392, 34.51289463624454],
  [117.27871091146937, 34.51705115377675],
  [117.27491120089574, 34.521141391647625],
  [117.27482418529388, 34.52465818146881],
  [117.27098921319461, 34.52576022723726],
  [117.27145967744164, 34.529784156057445],
  [117.2768901367962, 34.53063666662578],
  [117.27931542699679, 34.5283733713197],
  [117.28507533530728, 34.530806326250115],
  [117.28994036437066, 34.53036564417799],
  [117.30036805693742, 34.53473385192778],
  [117.30076882156173, 34.536947218035586],
  [117.30710008458446, 34.539709603694185],
  [117.30523374919957, 34.543078092699744],
  [117.30653312268092, 34.5461358407636],
  [117.29951689995222, 34.54757038191203],
  [117.29760295030435, 34.550729927235956],
  [117.2927696393413, 34.55306550937036],
  [117.2857787199965, 34.55040936144672],
  [117.27998457336322, 34.54991690266722],
  [117.27655128215906, 34.55119016822908],
  [117.27637892584683, 34.553841958620666],
  [117.28320310647219, 34.55726899394893],
  [117.28513783906723, 34.56097843029151],
  [117.29033094768944, 34.562956530006545],
  [117.29711124194492, 34.563202607260315],
  [117.29719751154656, 34.56097500271585],
  [117.29895768731036, 34.56090345085448],
  [117.30162129197502, 34.56638018887208],
  [117.3119210317193, 34.56902892831975],
  [117.30654127653308, 34.55608260296345],
  [117.30952412829961, 34.55647756323964],
  [117.31288117270775, 34.554642985356516],
  [117.31319065824809, 34.55208045825922],
  [117.31575226761552, 34.553692148668574],
  [117.31319016303256, 34.55632172738292],
  [117.3132561428402, 34.55872949924693],
  [117.31533210296159, 34.558596271313384],
  [117.31566310062173, 34.560871413822355],
  [117.32054386896111, 34.56016291538695],
  [117.32568928842124, 34.56263524396609],
  [117.33377015518576, 34.557455780558875],
  [117.33657407255576, 34.55890410708187],
  [117.33428656479724, 34.56532758262602],
  [117.32924942289796, 34.56832025970383],
  [117.32845957824759, 34.56462082940099],
  [117.3225315233086, 34.56304762584812],
  [117.31943003984553, 34.56633611430845],
  [117.3209510391127, 34.56990825962288],
  [117.32574107430709, 34.57094083512909],
  [117.32598644902262, 34.57226739923636],
  [117.32675626848767, 34.57075950319328],
  [117.32836627157616, 34.5716780488221],
  [117.32869826068922, 34.569872878800865],
  [117.33190293149683, 34.5706275273717],
  [117.33279426109138, 34.569381144496084],
  [117.33406990360506, 34.57149160795238],
  [117.33640053272407, 34.56947649473487],
  [117.34443896700854, 34.57388057414444],
  [117.34757477280868, 34.5791921920465],
  [117.35457525737907, 34.58129139179674],
  [117.36019802389124, 34.57976152546778],
  [117.36848759132546, 34.574825942517506],
  [117.37436513489901, 34.58179952504326],
  [117.37831288780318, 34.58122768257706],
  [117.3958594479273, 34.572009952800364],
  [117.40608900818988, 34.56652192319892],
  [117.40735936321094, 34.54397196611755],
  [117.41239688415041, 34.540264793956425],
  [117.42053157465047, 34.53760714811127],
  [117.41296143262709, 34.5359181718742],
  [117.38855536846297, 34.52404520752891],
  [117.37548554031724, 34.513863778578205],
  [117.36650777407057, 34.51210584596721],
  [117.35371592780074, 34.50642606855707],
  [117.34890286338991, 34.499410287166434],
  [117.3518107335952, 34.491616242715885],
  [117.35151579683054, 34.48161851655638],
  [117.34323913435611, 34.46999403104048],
  [117.34289146831318, 34.46517431949593],
  [117.36082318088762, 34.44297578385906],
  [117.36228543713621, 34.439865676185555],
  [117.36266931577792, 34.43161993158802],
  [117.3603811229584, 34.42901206881234],
  [117.34148562974731, 34.42440567306061],
  [117.3336524646457, 34.41589793214768],
  [117.33121514971769, 34.41652495801019],
  [117.32366771413238, 34.4233752557184],
  [117.31439923436356, 34.418041233720054],
  [117.31753426020714, 34.403669653385286],
  [117.29384513093358, 34.37998386996713],
  [117.28903770131278, 34.36703015995922],
  [117.28992527469248, 34.36336072271003],
  [117.29245666128816, 34.36081118632144],
  [117.3024786557423, 34.35877258552973],
  [117.30311545250271, 34.35154389630009],
  [117.3066815689376, 34.347334030149874],
  [117.30180690547928, 34.34475035339043],
  [117.29350652935521, 34.33526256941447],
  [117.28421014721019, 34.32811058549331],
  [117.28392170102642, 34.32542964207929],
  [117.26191633354524, 34.32291347815174],
  [117.22328668718528, 34.327898892846875],
  [117.21859520157206, 34.33210868365442],
  [117.21510350941111, 34.35088443603597],
  [117.21163931833524, 34.35022798252242],
  [117.20949621760121, 34.34659681933555],
  [117.20821345150851, 34.347123670789315],
  [117.20766370633551, 34.35203021281942],
  [117.20390768716672, 34.353431111426765],
  [117.19629634685025, 34.34732928477349],
  [117.19504895202911, 34.34408588583333],
  [117.1957499933578, 34.34169225453869],
  [117.19138529752729, 34.34053958228359],
  [117.19128979045566, 34.342847910222375],
  [117.18902879808765, 34.343308612157884],
  [117.18970735097068, 34.345260426714376],
  [117.18670269803019, 34.346030896856526],
  [117.18738176323842, 34.348159641127026],
  [117.18245569148048, 34.34750271692975],
  [117.17977895737314, 34.34983642441947],
  [117.17480296533, 34.349335218628696],
  [117.173873775196, 34.35076751842958],
  [117.16545893218205, 34.34971209308419],
  [117.1659434577067, 34.3459882106117],
  [117.15624005354961, 34.34497865603963],
  [117.1514222362865, 34.344655490640996],
  [117.14975163029398, 34.34376668210965],
  [117.14996170101993, 34.34205067379679],
  [117.1444128434854, 34.3399355222876],
  [117.14351806125876, 34.335781538626335],
  [117.14156349199577, 34.33711923284824],
  [117.13922707146774, 34.33544345609375],
  [117.13804534562327, 34.33823722882341],
  [117.1379026987989, 34.341845178932154],
  [117.13195286982773, 34.341667798539596],
  [117.1321899806429, 34.344220174493564],
  [117.13025798757482, 34.34542990710265],
  [117.13114708858197, 34.34744442224151],
  [117.12811617115965, 34.34468045294971],
  [117.12612422704755, 34.34458492404537],
  [117.12564587389265, 34.34102700831076],
  [117.11658328523156, 34.34050038427727],
  [117.11394655482563, 34.343083915497175],
  [117.11677611217122, 34.34632582798485],
  [117.11889551660926, 34.347913815152495],
  [117.1150311294505, 34.35001148233913],
  [117.11630367521593, 34.351318118300114],
  [117.11036454874633, 34.351021522893895],
  [117.11385752676392, 34.34759198430708],
  [117.11275128695743, 34.34756850619606],
  [117.1118140797266, 34.34886428965847],
  [117.11001949980245, 34.346637954549195],
  [117.1100063166001, 34.346072460959526],
  [117.10618970164799, 34.34666701813113],
  [117.10518858457684, 34.34881022592827],
  [117.10195746267797, 34.349013502164254],
  [117.10331995368918, 34.34949739404245],
  [117.10332207371093, 34.35124757959803],
  [117.10168982224718, 34.35142613955623],
  [117.10082865160962, 34.35384791444185],
  [117.09638365789607, 34.35381411091714],
  [117.0963201804151, 34.352274264912225],
  [117.09466203811463, 34.35164529299509],
  [117.09480122106362, 34.34841381266485],
  [117.09105609810725, 34.34681738071816],
  [117.09076161026033, 34.34469747198024],
  [117.08752856271725, 34.346609589862545],
  [117.08607397807285, 34.340624521488664],
  [117.08391963456437, 34.34022336591879],
  [117.08273946989922, 34.337896710502804],
  [117.08350770461787, 34.33480421426411],
  [117.07978817695727, 34.33564091388393],
  [117.08131715448222, 34.33037712536828],
  [117.07928360605695, 34.327867578614466],
  [117.08079590540231, 34.32344325854259],
  [117.07917457960514, 34.32309052805694],
  [117.08095371897974, 34.3223089545987],
  [117.08071802467374, 34.32050482902121],
  [117.07777296620999, 34.31812747647067],
  [117.07771113009348, 34.31498469213623],
  [117.07585392585004, 34.313803076558216],
  [117.07547728302409, 34.311385453835534],
  [117.07215871838535, 34.31180642883109],
  [117.07283074975147, 34.30663688822806],
  [117.0751317240517, 34.30653102476177],
  [117.07836489260231, 34.30297988903241],
  [117.08487974948983, 34.30071497633954],
  [117.08470585945427, 34.294961529947905],
  [117.08986055000709, 34.295736302342725],
  [117.0885977712919, 34.297057583781786],
  [117.0906382085963, 34.297667316859126],
  [117.09115666651898, 34.296042668770795],
  [117.09294434032009, 34.2976964602686],
  [117.09220656812089, 34.295808570228495],
  [117.09426476153928, 34.29579790922949],
  [117.09574908782007, 34.29912973059176],
  [117.09600170662956, 34.29747423986843],
  [117.09871830578277, 34.29743370811922],
  [117.09999064778678, 34.29587897580692],
  [117.09997037889896, 34.294142714793814],
  [117.09760761894024, 34.29372884379612],
  [117.09760787531152, 34.29245662157572],
  [117.09877817879998, 34.29376034445787],
  [117.10138942065288, 34.292956159681985],
  [117.0981179403901, 34.290826500053015],
  [117.10230813667623, 34.29217850960946],
  [117.10298294707341, 34.29021583982766],
  [117.10349760047525, 34.29269656854949],
  [117.10555958795251, 34.2914914881308],
  [117.10391609261174, 34.2905236958278],
  [117.10481693950976, 34.289618761991015],
  [117.10250535988278, 34.28954874109176],
  [117.10503418127469, 34.28728149926204],
  [117.10252574530642, 34.28678225981216],
  [117.10247051418779, 34.284949900483504],
  [117.1052365024299, 34.28372761675523],
  [117.10636236390525, 34.28098632366791],
  [117.10572208123448, 34.274934355817884],
  [117.10447035872583, 34.27497488085527],
  [117.10458606500453, 34.27938165657966],
  [117.10386432268442, 34.27743858899756],
  [117.09922549290782, 34.27550613397371],
  [117.09607966969104, 34.27552148893574],
  [117.09563507899614, 34.276601552751586],
  [117.09186761156977, 34.27599543023137],
  [117.09082725634191, 34.274571697444415],
  [117.09121673066959, 34.271033188101924],
  [117.09663596998195, 34.26821218044776],
  [117.0991048818244, 34.269822479372415],
  [117.10363333555706, 34.26664623805084],
  [117.1035733524691, 34.26176979164583],
  [117.10006363245466, 34.25958633159935],
  [117.09995897181251, 34.25554008717576],
  [117.09411427470958, 34.25194223651313],
  [117.09144803468465, 34.24680494277298],
  [117.09738784560831, 34.24115949469512],
  [117.1087750176261, 34.249854778759584],
  [117.11949833767154, 34.25010783364994],
  [117.12166118460361, 34.24854672785871],
  [117.12170068787586, 34.24446159541566],
  [117.11836810641461, 34.24333231704835],
  [117.11930814636, 34.241048027756335],
  [117.11850102068352, 34.230999642889174],
  [117.12288064508009, 34.22628925046663],
  [117.12367527837132, 34.21976324279983],
  [117.13097504415263, 34.21487499801297],
  [117.133362685464, 34.21100426672786],
  [117.13568805961405, 34.21084008042894],
  [117.14191575925521, 34.215164505953034],
  [117.14748764559666, 34.21359710461679],
  [117.15783555778975, 34.214003731307926],
  [117.16033696350179, 34.20128843043702],
  [117.17071397371484, 34.19504919497114],
  [117.17558126996595, 34.19481128969318],
  [117.18422524296285, 34.20456132208203],
  [117.18794203156853, 34.20576706376618],
  [117.18988667245904, 34.20471182425801],
  [117.19018986404868, 34.206053195571684],
  [117.19155141774219, 34.20602255857253],
  [117.19258876985721, 34.201209230713864],
  [117.19682163955696, 34.200317554684794],
  [117.19627590588118, 34.19722704654901],
  [117.20040616598732, 34.19598533095825],
  [117.22572870117556, 34.19648897495745],
  [117.22627331217066, 34.198853244118084],
  [117.23166485119965, 34.19891179739087],
  [117.2317273956961, 34.20144895775754],
  [117.23369064256703, 34.20186680112683],
  [117.23320201987751, 34.199141461510955],
  [117.23927859575782, 34.19743295540047],
  [117.24070082080468, 34.19632652236088],
  [117.23956948000796, 34.19452706410408],
  [117.24087356288102, 34.1938137980316],
  [117.22924719684015, 34.18080477342185],
  [117.2295524927325, 34.17863399382719],
  [117.24006755780378, 34.17214374604278],
  [117.24067536114714, 34.16212361441149],
  [117.25051446362676, 34.16149676172903],
  [117.25382623316473, 34.15639602746201],
  [117.26027358530801, 34.15337090095247],
  [117.26446689149472, 34.15267205084535],
  [117.26707728734372, 34.15549430197233],
  [117.29134169859174, 34.152133429658996],
  [117.29352024381754, 34.14785297363664],
  [117.30254141759454, 34.14675854899236],
  [117.30160863794698, 34.14504745734873],
  [117.31156306268377, 34.14333037603952],
  [117.31063089038483, 34.13905196537888],
  [117.32789538149422, 34.13593129834076],
  [117.33434896318053, 34.139740092250484],
  [117.33741946740865, 34.15823294047872],
  [117.33974103026964, 34.16432534669208],
  [117.34704034206578, 34.17045450552327],
  [117.34830812880523, 34.17354584605853],
  [117.34534215727972, 34.182814099403],
  [117.33915286826718, 34.183565835057884],
  [117.33848048685172, 34.19388224783205],
  [117.34009360482683, 34.20758266259683],
  [117.35685973509985, 34.2166259104405],
  [117.35817157334834, 34.2236190141291],
  [117.37416619283646, 34.2309007660407],
  [117.37604119807783, 34.239417800573044],
  [117.39947948730985, 34.24531388364233],
  [117.40860108356642, 34.254177872959815],
  [117.41388041414962, 34.264291194185205],
  [117.41033998156213, 34.270494551426395],
  [117.40981853879168, 34.277722526048294],
  [117.41798545489537, 34.28255542852486],
  [117.41983586779804, 34.28551309005791],
  [117.4190550778014, 34.30711437971938],
  [117.42057730833045, 34.30973491462155],
  [117.44531801149108, 34.30608875774834],
  [117.45672463626366, 34.30598747078231],
  [117.52770830993182, 34.32536538656723],
  [117.53626882451384, 34.32126815647258],
  [117.54341182518459, 34.31227848102068],
  [117.57960514478052, 34.30991404936507],
  [117.58498630234364, 34.313640985438084],
  [117.59006763959763, 34.32342128202521],
  [117.60312483625488, 34.331160465470255],
  [117.6042878969718, 34.344751814452806],
  [117.60707419464164, 34.34888174495821],
  [117.61019089196198, 34.350629329324896],
  [117.62352192751153, 34.35288331944915],
  [117.62831398673265, 34.353064223916725],
  [117.62965040827414, 34.34281734385106],
  [117.64665851331777, 34.34241431716511],
  [117.65291684384052, 34.337915257360535],
  [117.66686716918377, 34.33668936518193],
  [117.66550633731437, 34.3332327344104],
  [117.65978726112041, 34.33120196278485],
  [117.65712738747192, 34.325833309053884],
  [117.64839811179387, 34.32029416508804],
  [117.6473727901348, 34.31828496788739],
  [117.65030929000116, 34.30682573891517],
  [117.64938699072968, 34.29626660419087],
  [117.65621297577911, 34.283840614534896],
  [117.64614248535023, 34.27079176445729],
  [117.64508042049586, 34.242554985541375],
  [117.66224405274127, 34.21011857417291],
  [117.67054831518085, 34.17886733122508],
  [117.67382716531432, 34.17449252912255],
  [117.68977048475658, 34.162496671339966],
  [117.7061278151513, 34.142482058187184],
  [117.7022838389726, 34.13949512814609],
  [117.70000450203958, 34.1314703670046],
  [117.68937490538073, 34.11728052630965],
  [117.6879478717192, 34.11246553842012],
  [117.68460036697469, 34.10813408936772],
  [117.68540219945582, 34.10656525400411],
  [117.68906900202674, 34.10740254769115],
  [117.68742603264963, 34.10537922163045],
  [117.69124310372821, 34.10465607418528],
  [117.68898873324521, 34.10331136665114],
  [117.69341720459424, 34.10273990843842],
  [117.6918341958863, 34.099656311845365],
  [117.6845890598124, 34.09743186877125],
  [117.68176369490698, 34.097946219526094],
  [117.67008935393967, 34.0928827190439],
  [117.6670231236771, 34.092726847611395],
  [117.66564051890785, 34.094664564623024],
  [117.65801643588598, 34.094771076027364],
  [117.6529771563162, 34.093181884148926],
  [117.65282665417793, 34.09117165011938],
  [117.65070278847828, 34.08991811774933],
  [117.64569523100565, 34.08913999059581],
  [117.64263088345623, 34.08967560695908],
  [117.64173001690925, 34.0912748783103],
  [117.64143946177091, 34.0926349351507],
  [117.64289172743712, 34.0930570422039],
  [117.64004799522546, 34.09943496272579],
  [117.63058691872013, 34.100294446606696],
  [117.62968668706284, 34.098903149613086],
  [117.62156022028447, 34.09869668948039],
  [117.6213698689868, 34.0970460794696],
  [117.61213645153317, 34.096332145674296],
  [117.60329788169916, 34.097492444942944],
  [117.60209828260786, 34.09983293867148],
  [117.60037907194166, 34.099993835060744],
  [117.59991859965318, 34.09766340903844],
  [117.5956316889631, 34.09810540759907],
  [117.59517181942304, 34.09494436552223],
  [117.59283415332165, 34.095145973019804],
  [117.59264383535185, 34.09336566277966],
  [117.5884684193099, 34.09375938538993],
  [117.58827840775697, 34.091608523945425],
  [117.5838135566744, 34.092063309437926],
  [117.58331462854532, 34.08926303639177],
  [117.57597586770154, 34.089802036285604],
  [117.57578642003452, 34.091582919517684],
  [117.57420934003986, 34.0918355376696],
  [117.5720687677143, 34.09066837456649],
  [117.56754225973565, 34.09136628496773],
  [117.5670232935562, 34.08848650126337],
  [117.5701069011837, 34.08816083652201],
  [117.57284112487633, 34.08419560480261],
  [117.57512697840252, 34.08391204184689],
  [117.57502029595035, 34.08179536489872],
  [117.56763188610906, 34.08217378123978],
  [117.56510725462306, 34.07597650595025],
  [117.56257273775122, 34.07540125765835],
  [117.5642702278426, 34.06781876937573],
  [117.56338680030194, 34.059791299810534],
  [117.55678877188322, 34.058916933916116],
  [117.53262653555953, 34.062071254826044],
  [117.5276698389309, 34.06096125782299],
  [117.52169254187991, 34.05583026476544],
  [117.51402949033921, 34.058873147049994],
  [117.50853728969292, 34.05845147227417],
  [117.50408270008451, 34.04907899919407],
  [117.49802813437903, 34.04682709123975],
  [117.48044011123172, 34.04442326005781],
  [117.46389940563893, 34.034206355351486],
  [117.43414579961154, 34.02403772936599],
  [117.41927726732007, 34.022729942538696],
  [117.41405197739897, 34.023895360380976],
  [117.40938116139418, 34.02689605500283],
  [117.40555989000295, 34.03424887600675],
  [117.398175772183, 34.046434756783135],
  [117.39186711385707, 34.05242359567094],
  [117.38110492535425, 34.05405634788246],
  [117.37478268311334, 34.05751041050921],
  [117.3747825775487, 34.06003749617762],
  [117.37921770012973, 34.06369841398631],
  [117.3814521999441, 34.068284003780214],
  [117.37926930122646, 34.07219000817264],
  [117.37182467457606, 34.076109488992415],
  [117.36081930752216, 34.08507988871662],
  [117.35670601310572, 34.08522810722805],
  [117.34706724964929, 34.077423752661026],
  [117.32315877921265, 34.08124153712255],
  [117.31905546709004, 34.0764142869456],
  [117.31514027868005, 34.0649392873576],
  [117.3123734030227, 34.06425621802262],
  [117.29747912642982, 34.06794810806182],
  [117.29252132679262, 34.07185704278143],
  [117.29142520764715, 34.07553703720976],
  [117.28369549421876, 34.076005856636755],
  [117.27761937124247, 34.0741816752475],
  [117.27010093549717, 34.06881231856416],
  [117.26157200771394, 34.06865349191011],
  [117.26072539691994, 34.062563724701455],
  [117.22836506135887, 34.06105977009684],
  [117.21577989612508, 34.07160370542126],
  [117.21123326127503, 34.07087991403717],
  [117.21069025648187, 34.06553505368231],
  [117.19634411915544, 34.06565319035057],
  [117.18570957423377, 34.07298567890183],
  [117.1734294409654, 34.07717822771935],
  [117.17328200201169, 34.07406552077535],
  [117.15316039546059, 34.07555531288125],
  [117.16156321393785, 34.09569210167458],
  [117.15394702568759, 34.096472292683366],
  [117.15018271263015, 34.094783828650534],
  [117.13393218877651, 34.09876905725951],
  [117.13478245910342, 34.10435295403544],
  [117.13360106165817, 34.11445414914135],
  [117.13077126169965, 34.12294194808255],
  [117.12744734287497, 34.125226083790096],
  [117.11557233950671, 34.12562856526401],
  [117.11004004705062, 34.127434637470756],
  [117.10027332057561, 34.13817832794593],
  [117.09360604037997, 34.14273084721334],
  [117.07589778032877, 34.14376581633041],
  [117.06884171317755, 34.14881244740786],
  [117.058533361715, 34.152170160620415],
  [117.0506406874777, 34.148487749164175],
  [117.048687585937, 34.15595637785403],
  [117.04195526746032, 34.16450875093841],
  [117.0351307378812, 34.16379862078577],
  [117.02887952076652, 34.16432709412572],
  [117.03155484445118, 34.17000060681578],
  [117.03289294138237, 34.179869729067065],
  [117.03440694755696, 34.18343820496413],
  [117.04069713183269, 34.19009273229915],
  [117.04392260444313, 34.19862970076642],
  [117.0508406842466, 34.2029063763391],
  [117.05006718128091, 34.210215103896786],
  [117.05469829039988, 34.21961589096304],
  [117.05163391752646, 34.22167892763564],
  [117.04846626606906, 34.221865839731564],
  [117.04822847580753, 34.23003070332537],
  [117.04912978314493, 34.23262718219099],
  [117.05334955360846, 34.236366276232744],
  [117.05315446642128, 34.239556487563654],
  [117.04911541091401, 34.24474304180182],
  [117.04566202000775, 34.245785810240356],
  [117.03467399470432, 34.23992279363392],
  [117.03107959978038, 34.23732968495753],
  [117.0245755968654, 34.24016324738973],
  [117.02244924292913, 34.252659806972595],
  [117.01418375921395, 34.253023665288936],
  [117.00524656881014, 34.256909152215755],
  [116.98236747257731, 34.2710878511768],
  [116.97396750409098, 34.27789725226085],
  [116.9725562952386, 34.28087128122947],
  [116.97328801287256, 34.29029300190965],
  [116.9798311771998, 34.3020651844306],
  [116.98019730185965, 34.308085591071894],
  [116.97470408053626, 34.31108899213535],
  [116.97284273585088, 34.315498659922504],
  [116.97281486131456, 34.32027829213205],
  [116.974957866978, 34.32573823161571],
  [116.9852810740906, 34.33923199166137],
  [116.98681390204338, 34.345202028815656],
  [116.98643319441085, 34.35155892947946],
  [116.98432674121625, 34.355266000601496],
  [116.97668745264855, 34.358567653267414],
  [116.96451855612699, 34.36067438600007],
  [116.96450721270337, 34.3691822652623],
  [116.97287448093614, 34.38601113325578],
  [116.96255770562281, 34.3905327177199],
  [116.94920367931826, 34.39270530114603],
  [116.92412196713245, 34.404201329823714],
  [116.91274884112221, 34.405487385815384],
  [116.88706397124331, 34.40024621667475],
  [116.86811578348892, 34.388412128267014],
  [116.84768798147945, 34.38597982273581],
  [116.83162625462118, 34.38640076937053],
  [116.82743879654988, 34.39212425808497],
  [116.81466680173158, 34.403449275068496],
  [116.82499702074634, 34.412696423703046],
  [116.83123671045378, 34.42261206814184],
  [116.83698166202409, 34.42792991193228],
  [116.8556815412908, 34.436312962331634],
  [116.85946058751142, 34.444375280115125],
  [116.85857041252322, 34.45281527396809],
  [116.86151674161835, 34.45949576405341],
  [116.86150905267365, 34.46308796775297],
  [116.87086467280254, 34.465270357280275],
  [116.87494988676869, 34.472011412082516],
  [116.87873748421949, 34.47249156119489],
  [116.88049825149706, 34.47597082258646],
  [116.88206086868145, 34.475950348404396],
  [116.89820328082696, 34.47475213009693],
  [116.90522975295497, 34.47024641930935],
  [116.90738955971862, 34.46695579912523],
  [116.91794720515675, 34.46584492522058],
  [116.92474435316083, 34.46899893221917],
  [116.93998260576689, 34.46750844077618],
  [116.9404025767448, 34.45506141278346],
  [116.94993101148746, 34.453207040291595],
  [116.95084105832363, 34.45640218209574],
  [116.95719896091495, 34.460746578556865],
  [116.9632293330902, 34.46001516192727],
  [116.96515023496194, 34.45738199595193],
  [116.96955940736463, 34.456410217150264],
  [116.96934547025448, 34.46820165870459],
  [116.97694787583947, 34.46841225348275],
  [116.99003675839057, 34.46562729304855],
  [116.99140768788223, 34.465074398419624],
  [116.99162206095164, 34.461297825376256],
  [117.00289086388209, 34.45693437893106],
  [117.00884344736109, 34.46142624739467],
  [117.012693492378, 34.46966558107728],
  [117.01820926405688, 34.46980140220531],
  [117.0190135971315, 34.47947186079936],
  [117.01313747974758, 34.480852660671324],
  [117.01670006003013, 34.49411901654551],
  [117.02175594784616, 34.49517809092593],
  [117.02557110997785, 34.5024841849415],
  [117.0292527617189, 34.50476509999227],
  [117.03931376367694, 34.516481968946465],
  [117.04516808643163, 34.51902049684465],
  [117.06729370083914, 34.5192124638137],
  [117.07355907558055, 34.524330436651475],
  [117.07970090505576, 34.525102886439946],
  [117.08437110074416, 34.53328065569036],
  [117.09210006341635, 34.53405354367663],
  [117.09707989798143, 34.532012356259564],
  [117.10046881738118, 34.533227416153046],
  [117.10863392502878, 34.53820797425404],
  [117.10761820684046, 34.552989944021284],
  [117.14275319012995, 34.55404862423491],
  [117.15393396394599, 34.55239160605895],
  [117.16504237663932, 34.551825803804704],
  [117.16450788017299, 34.544225971372086],
  [117.15637378302544, 34.54369181206151],
  [117.15305650170403, 34.537055725185205],
  [117.15553320642775, 34.52450992228208],
  [117.15562782951618, 34.510294735729246],
  [117.15905368154715, 34.50173053124703],
  [117.1670807593982, 34.502585393817945],
  [117.17494918083482, 34.483614921265456],
  [117.17923454532588, 34.466929448806255],
  [117.18401496874512, 34.46639479672182],
  [117.18731546665273, 34.467847060480594],
  [117.19061175645214, 34.475551521795644],
  [117.1953319943776, 34.47454572310444],
  [117.19218757375963, 34.462097958034114],
  [117.20098334247685, 34.46257244104047],
  [117.21260873097029, 34.457830502166004],
  [117.21536186824744, 34.45987218924538],
  [117.2117707732617, 34.464628327576655],
  [117.21630754414016, 34.460056031909545],
  [117.22796428316758, 34.47005592159034],
  [117.22518793727473, 34.46571966458268],
  [117.21403588021093, 34.45733031857642],
  [117.21035841346804, 34.45168559473941],
  [117.22556025411116, 34.447356820073104],
];


    const bbox = turf.bbox(TSfea);
    const cellSide = 1; // 1公里
    const options = { units: 'kilometers' };
    const grid = turf.squareGrid(bbox, cellSide, options);

    // 裁剪网格只保留与原始多边形相交的部分
    const bboxListGeo = turf.featureCollection(
      grid.features.map(feature => {
        const intersection = turf.intersect(feature, originalPolygon);
        return intersection || null;
      }).filter(Boolean)
    );
    let bboxList = bboxListGeo.features.map((item) => item.geometry.coordinates);

let allFea = [];

const _sleep = (time) => {
  return new Promise((resolve) => setTimeout(resolve, time));
};

const _mapLoaded = (time = 500) => {
  return new Promise((resolve, reject) => {
    const interval = setInterval(() => {
      try {
        if ($myMap.isStyleLoaded() === true) {
          clearInterval(interval);
          resolve();
        }
      } catch (error) {
        clearInterval(interval);
        reject(error);
      }
    }, time);

    setTimeout(() => {
      clearInterval(interval);
      reject(new Error("Timeout waiting for load"));
    }, 30 * 1000);
  });
};

for (let i = 0; i < bboxList.length; i++) {
  const bbox = bboxList[i];
  $myMap.fitBounds(bbox);
  try {
    await _mapLoaded();
  } catch (error) {
    console.log("allFea", allFea);
  }

  await _sleep(500);
  let feas = $myMap.queryRenderedFeatures([
    [0, 0],
    [1920, 1080],
  ]);
  let tmpFea = [];
  feas.forEach((item) => {
    if (item.source.includes("community")) {
      tmpFea.push(item);
    }
  });
  allFea.push(...tmpFea);
  console.log("当前网格出图个数", tmpFea.length);
  console.log("当前进度", i, "/", bboxList.length);
}

console.log("allFea", allFea);

let tempMap = new Map();
for (const v of allFea) {
  !tempMap.has(v.properties.id) && tempMap.set(v.properties.id, v);
}

let res = [...tempMap.values()];
console.log("res", res);

let Res = [];

res.forEach((item) => {
  if (item.properties.city == "连云港市") {
    Res.push(item);
  }
});

console.log("Res", Res);
